package com.gui.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gui.model.cmn.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author GodLamp
 * @date 2022/10/13 11:45
 */
public interface DictService extends IService<Dict> {
    /**
     * 根据上级id查询子数据列表
     * @param id
     * @return
     */
    List<Dict> findChildData(Long id);

    void exportDictData(HttpServletResponse response);

    void importDictData(MultipartFile file);

    String getDictName(String dictCode, String value);

    String getDictName(String value);

    List<Dict> findByDictCode(String dictCode);
}
